package com.zlp.mybatisplus.mybatisplus.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 奖品表
 * </p>
 *
 * @author zhulaiping
 * @since 2022-01-25
 */
@TableName("bcrm_award_prize")
public class AwardPrize extends Model<AwardPrize> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 活动id
     */
    @TableField("activity_id")
    private String activityId;

    /**
     * 奖励id
     */
    @TableField("activity_award_id")
    private String activityAwardId;

    /**
     * 物料礼品id
     */
    @TableField("material_id")
    private String materialId;

    /**
     * 奖品类型(1: 红包 2:积分 3:实物 4:虚拟 5:抽奖)
     */
    private Integer type;

    /**
     * 总积分/总金额/实物总金额
     */
    @TableField("total_amount")
    private Integer totalAmount;

    /**
     * 积分额度/红包额度
     */
    private Integer amount;

    /**
     * 剩余积分/剩余额度
     */
    @TableField("residue_amount")
    private Integer residueAmount;

    /**
     * 数量
     */
    @TableField("prize_count")
    private Integer prizeCount;

    /**
     * 是否同步金额(1: 同步 2: 不同步)
     */
    @TableField("sync_type")
    private Integer syncType;

    /**
     * 抽奖名称
     */
    @TableField("lotter_name")
    private String lotterName;

    /**
     * 抽奖次数
     */
    @TableField("lotter_count")
    private Integer lotterCount;

    /**
     * 封面url
     */
    @TableField("cover_url")
    private String coverUrl;

    /**
     * 领取方式介绍
     */
    private String draw;

    /**
     * 兑换开始时间
     */
    @TableField("start_at")
    private Date startAt;

    /**
     * 兑换结束时间
     */
    @TableField("end_at")
    private Date endAt;

    @TableField("created_at")
    private Date createdAt;

    @TableField("updated_at")
    private Date updatedAt;

    @TableField("deleted_at")
    private Date deletedAt;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }
    public String getActivityAwardId() {
        return activityAwardId;
    }

    public void setActivityAwardId(String activityAwardId) {
        this.activityAwardId = activityAwardId;
    }
    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Integer getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
    }
    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }
    public Integer getResidueAmount() {
        return residueAmount;
    }

    public void setResidueAmount(Integer residueAmount) {
        this.residueAmount = residueAmount;
    }
    public Integer getPrizeCount() {
        return prizeCount;
    }

    public void setPrizeCount(Integer prizeCount) {
        this.prizeCount = prizeCount;
    }
    public Integer getSyncType() {
        return syncType;
    }

    public void setSyncType(Integer syncType) {
        this.syncType = syncType;
    }
    public String getLotterName() {
        return lotterName;
    }

    public void setLotterName(String lotterName) {
        this.lotterName = lotterName;
    }
    public Integer getLotterCount() {
        return lotterCount;
    }

    public void setLotterCount(Integer lotterCount) {
        this.lotterCount = lotterCount;
    }
    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }
    public String getDraw() {
        return draw;
    }

    public void setDraw(String draw) {
        this.draw = draw;
    }
    public Date getStartAt() {
        return startAt;
    }

    public void setStartAt(Date startAt) {
        this.startAt = startAt;
    }
    public Date getEndAt() {
        return endAt;
    }

    public void setEndAt(Date endAt) {
        this.endAt = endAt;
    }
    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }
    public Date getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(Date deletedAt) {
        this.deletedAt = deletedAt;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AwardPrize{" +
        "id=" + id +
        ", activityId=" + activityId +
        ", activityAwardId=" + activityAwardId +
        ", materialId=" + materialId +
        ", type=" + type +
        ", totalAmount=" + totalAmount +
        ", amount=" + amount +
        ", residueAmount=" + residueAmount +
        ", prizeCount=" + prizeCount +
        ", syncType=" + syncType +
        ", lotterName=" + lotterName +
        ", lotterCount=" + lotterCount +
        ", coverUrl=" + coverUrl +
        ", draw=" + draw +
        ", startAt=" + startAt +
        ", endAt=" + endAt +
        ", createdAt=" + createdAt +
        ", updatedAt=" + updatedAt +
        ", deletedAt=" + deletedAt +
        "}";
    }
}
